
package com.demo.entity.enums;


public enum AppiontmentStatusEnum {
    REJECT(-1, "驳回"),
    UNCOMFIRM(0, "待确认"),
    COMFRMED(1, "已确认"),
    COMPLETED(2, "完成"),
    CANCELED(3, "已取消"),

    ;


    private Integer status;
    private String desc;

    AppiontmentStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static AppiontmentStatusEnum getByStatus(Integer status) {
        for (AppiontmentStatusEnum item : AppiontmentStatusEnum.values()) {
            if (item.getStatus().equals(status)) {
                return item;
            }
        }
        return null;
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
